package com.google.code.gaeom;

import java.util.List;

import com.google.appengine.api.datastore.Key;

/**
 * @author Peter Murray <gaeom@pmurray.com>
 */
public interface Store
{
	interface Common<C extends Common<C>>
	{
		C parent(Object parent);
	}

	interface Multi extends Common<Multi>, Terminator<List<Key>>
	{
		Multi ids(Iterable<?> ids);

		Multi ids(String... ids);

		Multi ids(Long... ids);
	}

	interface Single extends Common<Single>, Terminator<Key>
	{
		Single id(Long id);

		Single id(String id);
	}
}
